package com.study.blog.mapper;

import com.study.blog.model.entity.Admin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface AdminMapper {
    Integer activationAccount(@Param("email") String email);

    Admin checkAccountValid(@Param("email") String email);

    Admin checkAccountExist(@Param("email") String email);

    Admin login(@Param("email") String email, @Param("password") String password);

    Integer register(Admin admin);

    Integer abort(@Param("email") String email);
}
